Welcome![Sign In][Sign Up]
Location:
Search - event class

Search list

[Driver Develop1636928

Description: 这段代码是教初学者/中级程序员“提高事件”在一个类模块,同时也可输入数量和生成一个随机数-This code is to teach beginner/intermediate programmers " raising event" in a class module, but also to enter the quantity and generate a random number
Platform: | Size: 2048 | Author: yue3914266 | Hits:

[OtherCSerialPort-problem-

Description: CSerialPort是一个很好的串口通讯类,但它没有关闭串口的方法,如果对这个类的实现原理不了解,自行编写串口关闭方法可能会带来如下问题: 1、用closehandle方法关闭串口:由于调用类方法StartMonitoring后会生成一个串口通信线程,这个线程中要不停地访问串口,这种方法会带来明显的错误。 2、先用StopMonitoring方法停止串口监听,然后用closehandle关闭串口:由于StopMonitoring只是将进程挂起,这样做将使程序结束时解构函数无法将中止事件发送到线程,可能导致程序不能完全退出,主窗口关闭后仍可在进程管理器中看到进程。 3、先用SetEvent发送中止事件给线程,等待线程结束后再用closehandle关闭串口,程序如下:-CSerialPort class is a good serial interface communication, but it has no closing method of the serial port, if you don t understand the implementation principle of this class, to write a serial port closure method may lead to the following questions: 1, close a serial port with the closehandle method: as the call after class methods StartMonitoring generates a serial port communication thread, the thread to keep access to a serial port, this method can bring obvious errors. 2, use StopMonitoring method first stop serial port to monitor, then use closehandle close the serial port: because StopMonitoring just hang up the process, doing so will make the program at the end of the destructors cannot send to suspend the event to the thread, may cause the program can t quit, main window is turned off, can still be seen in the process in task manager. 3, with SetEvent first send the thread to suspend the event, after the waiting thread to use closehandle to close a serial port,
Platform: | Size: 1024 | Author: blacks | Hits:

[OS program1.0

Description: 封装了定时器的应用程序基类,包含封装了简单服务响应的事件机制。-Encapsulates the Timer base class of applications, including packaging a simple event mechanism for service response.
Platform: | Size: 3072 | Author: bi496isg | Hits:

[ADO-ODBCadvanced-logging

Description: 事件记录类,可直接包含事件记录类,可支持文件和窗口输出两种事件记录方式-Event log category, including event logging class directly, support documents and windows event log output of two ways
Platform: | Size: 10240 | Author: zhong45nsu | Hits:

[JSP/Javapoi-excel

Description: java poi excel操作demo 支持xls和xlsx两个格式的excel文件的读写操作。读取模式包含用户模式和事件驱动模式 ,事件驱动模式能够支持大数据量的读操作,写操作xlsx使用sxssf方式支持大数据量的写入操作。 demo 基于poi 3.10.1版本 jdk为1.7 可直接导入ecplise 测试类为TestSrv.java。 压缩包附导入模版。修改TestSrv.java main函数内的导入文件路径即可直接测试使用-java poi excel operating demo supports read and write excel files xls and xlsx two formats. Read Mode contains the user mode and event-driven mode, the event-driven model can support a large amount of data read and write operations xlsx use sxssf to support large amounts of data write operation. Based poi 3.10.1 demo version jdk 1.7 can directly import ecplise Test class TestSrv.java. Archive attached to import templates. Modify the import file paths within TestSrv.java main function can be directly tested using
Platform: | Size: 12703744 | Author: zg1234 | Hits:

[ADO-ODBCadvanced-logging

Description: 事件记录类,可直接包含事件记录类,可支持文件和窗口输出两种事件记录方式-Event log category, including event logging class directly, support documents and windows event log output of two ways
Platform: | Size: 10240 | Author: p9cao | Hits:

[JSP/JavaBorderLayout

Description: package 边界布局BorderLayout import java.awt.BorderLayout import java.awt.event.WindowAdapter import java.awt.event.WindowEvent import javax.swing.JButton import javax.swing.JFrame public class TestBorderLayout extends JFrame{ public static void main(String[] args) { new TestBorderLayout() }-package border layout BorderLayout import java.awt.BorderLayout import java.awt.event.WindowAdapter import java.awt.event.WindowEvent import javax.swing.JButton import javax.swing.JFrame public class TestBorderLayout extends JFrame { public static void main (String [] args) {new TestBorderLayout () }
Platform: | Size: 1024 | Author: Brian | Hits:

[JSP/JavaJButton

Description: package 常用组件之JButton import java.awt.event.ActionEvent import java.awt.event.ActionListener import java.awt.event.WindowAdapter import java.awt.event.WindowEvent import javax.swing.JButton import javax.swing.JFrame import javax.swing.JLabel import javax.swing.JPanel public class TestJButton { public static void main(String[] args) { new MyFrame() } } class MyFrame extends JFrame-JButton package of commonly used components import java.awt.event.ActionEvent import java.awt.event.ActionListener import java.awt.event.WindowAdapter import java.awt.event.WindowEvent import javax.swing.JButton import javax.swing.JFrame import javax.swing.JLabel import javax.swing.JPanel public class TestJButton {public static void main (String [] args) {new MyFrame () }} class MyFrame extends JFrame
Platform: | Size: 2048 | Author: Brian | Hits:

[JSP/JavaJComboBox

Description: package 常用组件之JComboBox import java.awt.event.ItemEvent import java.awt.event.ItemListener import java.awt.event.WindowAdapter import java.awt.event.WindowEvent import javax.swing.JComboBox import javax.swing.JFrame import javax.swing.JLabel import javax.swing.JPanel public class TestJComboBox {-JComboBox package of commonly used components import java.awt.event.ItemEvent import java.awt.event.ItemListener import java.awt.event.WindowAdapter import java.awt.event.WindowEvent import javax.swing.JComboBox import javax.swing.JFrame import javax.swing.JLabel import javax.swing.JPanel public class TestJComboBox {
Platform: | Size: 1024 | Author: Brian | Hits:

[JSP/JavaStringandAWT

Description: package String与AWT的比较 import java.awt.event.WindowAdapter import java.awt.event.WindowEvent import javax.swing.JFrame import javax.swing.JLabel import javax.swing.JMenu import javax.swing.JMenuBar import javax.swing.JMenuItem public class Demo extends JFrame{//定义一个窗口,继承JFrame窗口类
Platform: | Size: 1024 | Author: Brian | Hits:

[TreeViewSliderSpinbot

Description: A picture button class, you can set a variety of button status pictures, and overload the mouse event
Platform: | Size: 4096 | Author: puhunyun | Hits:

[Game ProgramJava小游戏连连看1.0

Description: 该报告中的程序是使用Java程序编写的连连看小游戏,能够进行休闲放松,锻炼细微观察能力以及思考能力。具有退出功能,再来一局功能,重新排列功能和游戏说明功能,特殊之处本程序加入了音乐功能。该程序分为两个类,主类是class lianliankan,副类是class AudioPlayer,主要运用了工具包 javax.swing, java.awt,java.applet, java.net,java.io和常用组件以及事件监听器等。(The program in the report is the use of Java programming Lianliankan games, leisure relaxation, exercise, subtle observation ability and thinking ability. With the exit function, another function, rearrangement function and game description function, special, this program added music function. The program is divided into two categories, the main category is class Lianliankan, the vice class is class AudioPlayer, the main use of the javax.swing toolkit, java.awt, java.applet, java.net, java.io and common components and event listener etc..)
Platform: | Size: 23552 | Author: lm521 | Hits:

[JSPJava

Description: 《Java从入门到精通》是人民邮电出版社于 2010年出版的图书,由国家863中部软孵化器主编。以零基础讲解为宗旨,深入浅出地讲解Java的各项技术及实战技能。本从初学者角度出发,通过通俗易懂的语言、丰富多彩的实例,详细介绍了使用Java语进行程序开发应该掌握的各方面技术。全书共分28章,包括:初识Java,熟悉Eclipse发工具,Java 语言基础,流程控制,字符串,数组,类和对象,包装类,数字处理类,接口、继承与多态,类的高级特性,异常处理,Swing程序设计,集合类,I/O输入出反射,枚举类型与泛型,多线程,网络通信,数据库操作,Swing表格组件,Swing树件,Swing其他高级组件,高级布局管理器,高级事件处理,AWT绘图与音频播放(To zero basis for the purpose of explanation, in layman's terms to explain Java's technical and practical skills. This book from a beginner's point of view, through the easy to understand language, colorful examples, detailing the use of Javalanguage for program development, should grasp all aspects of technology. The bookis divided into 28 chapters, including: the first Java, familiar with Eclipse developmenttools, Java language based on process control, strings, arrays, classes and objects,packaging, digital processing class, interface, inheritance and polymorphism, advanced features, like exception handling, Swing program design, collection, input and output of I/O, reflection, enumeration types and generic, multi thread, network communication, database operation, Swing table component, Swing tree components, Swing other advanced components, advanced layout manager, senior event handling,)
Platform: | Size: 7254016 | Author: 相扑 | Hits:

[Internet-NetworkSocketManager

Description: socket 异步通讯类,事件回调机制 ,可以用(Socket asynchronous communication class, event callback mechanism, can be used)
Platform: | Size: 4096 | Author: 忽悠忽悠 | Hits:

[Internet-NetworkAsyncSocket

Description: vsocket 异步通讯类,事件回调机制 ,可以用(Socket asynchronous communication class, event callback mechanism, can be used)
Platform: | Size: 5120 | Author: 忽悠忽悠 | Hits:

[Otherzrender

Description: 一个轻量级的Canvas类库,MVC封装,数据驱动,提供类Dom事件模型,让canvas绘图大不同(A lightweight Canvas class library, MVC package, data driven, providing class Dom event model, so that canvas graphics are different)
Platform: | Size: 37888 | Author: jc起 | Hits:

[TCP/IP stackTCP_Socket_1.6

Description: 这个程序是一个非常干净的代码,由有经验的程序员编写,使用C ++类cSocket,在C ++平台上编写,并且附带一个MFC演示应用程序。 cSocket类很容易使用,即使是初学者也没有问题。(Event driven (non blocking, asynchronous) Winsock programming is a very complex topic. It is definitely NOT for beginners! I needed such code and searched the internet for a TCP communication class which is ready to use. But all I found (even here on CodeProject) was either buggy, immature beginner code or much too complex for my needs. So I ended up - investing many hours - to write my own decent class. I offer it here on CodeProject for all those who need a reliable and robust TCP socket class. What you can download here is a very clean code written by an experienced programmer, with proper error handling and plenty of comments. The universal generic C++ class cSocket, written in plain C++, comes with a MFC demo application. The cSocket class is so easy to use that even a beginner will have no problems with it.)
Platform: | Size: 627712 | Author: ElectroMaster | Hits:

[CSharpNET_Source

Description: 是LogOutputSocketProtocol的管理对 象;m_uploadSocketProtocolMgr是UploadSocketProtocol的管理对象,用于检测是否同时上传同一个文 件;m_downloadSocketProtocolMgr是DownloadSocketProtocol的管理对象;m_daemonThread 是守护进程,用于关闭超时连接。 2. AsyncSocketUserToken:用于SocketAsyncEventArgs绑定,保存 每个Socket服务对象,包括:m_receiveEventArgs接收数据异步事件;m_asyncReceiveBuffer接收数据异步事件使 用的缓存;m_sendEventArgs发送数据异步事件;m_receiveBuffer接收异步事件返回的数据存放缓存,用于后续的分 包;m_sendBuffer用于保存发送的数据缓存;m_asyncSocketInvokeElement是用于协议调用的基类,主要实现分包,并发 发送的包加到发送列表中,发送完成回调时继续发送下一个包;m_connectSocket是连接的Socket对象。(LogOutputSocketProtocol is the management object; m_uploadSocketProtocolMgr is UploadSocketProtocol management object, designed to detect and upload the same file; m_downloadSocketProtocolMgr is DownloadSocketProtocol management object; m_daemonThread is the guardian of process for closing the connection timeout. 2.: AsyncSocketUserToken for SocketAsyncEventArgs binding, save each Socket service object, including: m_receiveEventArgs receives data asynchronous events; m_asyncReceiveBuffer receive data asynchronous events using m_sendEventArgs to send data cache; asynchronous events; m_receiveBuffer receive asynchronous event data returned by the stored cache for subsequent subcontracting; m_sendBuffer is used to preserve the data sent by the cache; m_asyncSocketInvokeElement is the base class for the agreement calls, the main sub package to send a list of concurrent sending, sending a packet to send the completed callback; m_connectSocket is connected to the Socket object.)
Platform: | Size: 309248 | Author: 阿正321 | Hits:

[JSP/JavaDesktop

Description: package x12; import java.applet.*; import java.awt.*; import java.awt.event.*; public class Add extends Applet implements ActionListener { Label lblTwoNum = new Label ("请输入两个数字"); Label lblAdd = new Label ("此处显示答案"); TextField txtFirstNum = new TextField (2); TextField txtSecNum = new TextField (2); Button btnAdd = new Button ( "求和"); public void init() { add (lblTwoNum); add (txtFirstNum); add (txtSecNum); add (btnAdd); add (lblAdd); this.resize(300,100); btnAdd.addActionListener (this); } public void actionPerformed (ActionEvent e) { String firstNum = txtFirstNum.getText(); String secNum = txtSecNum.getText(); int add = Integer.parseInt(firstNum) + Integer.parseInt(secNum); lblAdd.setText ("两数之和:"+ add); } }(sdadsasdasdsadsaasdadasdasd)
Platform: | Size: 251904 | Author: 囚牛 | Hits:

[OtherJAVA

Description: java基础教程,Java环境及配置,Java基本语法,类和接口,Java Applet,Java图形处理,Java用户界面技术,异常、事件和多线程机制等(Java basic course, Java environment and configuration, Java basic syntax, class and interface, Java Applet, Java graphic processing, Java user interface technology, exception, event and multithreading mechanism.)
Platform: | Size: 5647360 | Author: 天天 | Hits:
« 1 2 ... 8 9 10 11 12 13»

CodeBus www.codebus.net